package com.ck.print.demo.printbridge.message.qzcmd;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * {
 *     "call": "printers.startListening",
 *     "params": {
 *         "printerNames": [
 *             null
 *         ],
 *         "flavor": "plain"
 *     },
 *     "signature": "",
 *     "timestamp": 1760509836704,
 *     "uid": "cto54o",
 *     "position": {
 *         "x": 1280,
 *         "y": 700
 *     },
 *     "signAlgorithm": "SHA512"
 * }
 */
@Data
public abstract class ABaseCmd {
    protected String call;
    protected String uid;
    private String signature="";
    private long timestamp = System.currentTimeMillis();
    private Position position = new Position(1280, 700);
    private String signAlgorithm = "SHA512";

    @Data
    @AllArgsConstructor
    public static class Position {
        private int x;
        private int y;
    }
}
